<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/
$route['default_controller'] = "module/admin/index";


if($_SERVER['SERVER_NAME'] == 'julylovin.com' || $_SERVER['SERVER_NAME'] == 'www.julylovin.com'){
    $route['default_controller'] = "module/smudge/index/index";
    $route['smudge.html'] = "module/smudge/index/index";
}


 

$route['404_override'] = 'errors/error_404';

$route['adminlogin'] = 'module/admin/index/login';

// 第二首页
$route['home'] = 'module/citysite/index/home';


//城市站推荐分类跳转
$route['d-(:any)'] = 'module/citysite/index/cat_list_301/$1';

//跟团游
$route['gentuan'] = 'module/line/index/search/list';
//$route['gentuan/list-(:any)'] = 'module/line/index/gentuan/$1';
//$route['gentuan/(:num)'] = 'module/line/index/gentuan/$1';
//自助游
$route['zizhu'] = 'module/line/index/search/list';
//$route['zizhu/(:num)'] = 'module/line/index/zizhu/$1';
//$route['zizhu/list-(:any)'] = 'module/line/index/zizhu/$1';


//线路搜索list

$route['line'] = 'module/line/index/line';
$route['line/list-(:any)'] = 'module/line/index/line/$1';
$route['line/(:num)'] = 'module/line/index/line/$1';

//团购
$route['tuangou'] = 'module/promotion/index/group_list';
$route['tuangou/(:num).html'] = 'module/promotion/index/group_info/$1';
$route['tuangou/(:num)'] = 'module/promotion/index/group_list/$1';
$route['tuangou/([a-z]+)'] = 'module/promotion/index/group_list/$1';
$route['tuangou/([a-z]+)/(:num)'] = 'module/promotion/index/group_list/$1/$2';

//特色商品
$route['goods'] = 'module/line/index/goods_list';
$route['goods/(:num).html'] = 'module/line/index/goods_info/$1';

$route['gys'] = 'module<?php echo site_url("line/index/supplier_list")?>';


//城市站搜索
$route['search/list-(:any)'] = 'module/line/index/search/$1';
$route['search/zlb-(:any)'] = 'module/zlb/line/search/$1';
$route['search/(:any)'] = 'module/line/index/search/$1';

//旅行月历
$route['yueli'] = 'module/citysite/index/month_calendar';

//景区门票
$route['jingdian'] = 'module/ticket/index/index';
$route['jingdian/city_(:num)_(:num)']  = 'module/ticket/index/index';
$route['jingdian/list_(:any)'] = 'module/ticket/index/lists';
$route['jingdian/(:num).html'] = 'module/ticket/index/profile/$1';
$route['jingdian/search_(:any)'] = 'module/ticket/index/search/$1';

$route['jianjie'] = 'module/article/index/about_us';
$route['corp/(:any).html'] = 'module/article/index/corp/$1';

//帮助中心
$route['help'] = 'module/article/index/help';
$route['help/(:num).html'] = 'module/article/index/help/$1';

//加入我们
$route['jiaruwomen'] = 'module/article/index/join_us';

//资讯
$route['zixun'] = 'module/article/index/article_index';
$route['zixun/(:any)/(:num).html'] = 'module/article/index/article/$2';
$route['zixun/(:any)'] = 'module/article/index/article_index/$1';

//资讯
$route['qianzheng'] = 'module/article/index/qianzheng_index';
$route['qianzheng/(:num).html'] = 'module/article/index/qianzheng/$1';




// 达人 
$route['daren'] = 'module/expert/index/';
$route['daren/(:num).html'] = 'module/expert/index/detail/$1';
$route['daren/list_(:any)'] = 'module/expert/index/';

// 攻略
$route['gonglve/list_(:any)'] = 'module/trips/index/trips/';
$route['gonglve'] = 'module/trips/index/trips/';
$route['gonglve/(:num).html'] = 'module/trips/index/trip_profile/$1';

//攻略 娱乐
$route['gonglve/yule'] = 'module/trips/index/yule/';
$route['gonglve/yule/(:num)'] = 'module/trips/index/yule/$1';



// 登陆
$route['denglu'] = 'module/admin/index/login';

// 注册
//$route['zhuce']  = 'module/member/index/register/';



// 支付
$route['pay'] = 'module/pay/index/index';
$route['payprocess'] = 'module/pay/index/pay_process';
$route['pay/(:num)'] = 'module/pay/index/index/$1';


/*新增module时候，请把module加到下面列表中，否则访问不到*/
$route['((?!(admin|advert|api|article|citysite|collect|comment|cron|customize|diy|expansion|expert|flight|index|install|line|member|mobile|order|pay|qa|scenic|statistic|styles|ticket|trips|weixin|zlb|promotion|special|rent|hotel|test|b2bclient|company|static|visa|jingdian|apihotel|hm)).*?)'] = 'module/citysite/index/cat_list/$1';

$route['(:any)'] = 'module/$1';




/* End of file routes.php */
/* Location: ./application/config/routes.php */